﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net;
using CSP.Common.Providers;
using CSP.Common.IProviders;

namespace CSP.Common.Factories
{
    public class LoggerFactory
    {
        public static ILoggerProvider GetErrorLogger()
        {
            log4net.Config.XmlConfigurator.Configure();
            ILog logger = log4net.LogManager.GetLogger("logError");
            return new LoggerProvider(logger);
        }

        public static ILoggerProvider GetInfoLogger()
        {
            log4net.Config.XmlConfigurator.Configure();
            
            ILog logger = log4net.LogManager.GetLogger("logInfo");
            return new LoggerProvider(logger);
        }
    }
}
